<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>收益记录 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/css/reset.css" rel="stylesheet" type="text/css">
<link href="templets/style/css/member.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/table_function.js"></script>
</head>
<body>


<!--head-->
<?php include(DEDEMEMBER. "/templets/head.htm"); ?>

<div class="main">

<?php include(DEDEMEMBER."/templets/menu.php"); ?> 

<div class="main_right">

<div class="common_title">收益记录</div>

<table class="xfmx_table">
<thead>
<tr>
<th style="width:15%">订单号</th>
<th>产品</th>
<th style="width:10%">价格</th>
<th style="width:12%">状态</th>
<th style="width:15%">交易时间</th>
<th style="width:5%">操作</th>
</tr>
</thead>
<tbody>
{dede:datalist}
<tr>
<td>
{dede:field.buyid/}
</td>
<td><?php if($fields['arcid']!='0') echo "<a href='".$cfg_phpurl."/view.php?aid=".$fields['arcid']."' style='font-size:14px;margin-left:5px;font-weight:bold;color:#666' target='_blank'>".$fields['oldinfo']."M".$fields['arcid']."</a>";?>[<font style="color:red;"><?php echo $fields['pname']; ?></font>] </td>
<td>
<?php  echo $fields['money']; ?>金币
</td>
<td>
<?php if($fields['glock']==1){echo "已冻结，请联系管理员";}else{ if($fields['product']=="sell"){ if($fields['sta']==0){ echo "未完成";}elseif($fields['sta']==1){ echo '<a href="income.php?buyid='.$fields['buyid'].'&dopost=closeout">向TA收余款</a>';}elseif($fields['sta']==3){ echo '等待支付余款';}else{ if($fields['product']=='sell') echo "已完成";}}}?>
</td>
<td>
<?php echo date("Y-m-d H:i",$fields['mtime']); ?>
</td>

<td class="xx">
<a href="javascript:;" >详情</a>
</td>
</tr>
<tr class="detail" style="display: none;">
<td colspan="5"><div class="gmz"><b>购买者信息:</b><br>
用户名:<?php if($fields['mai1']=="") { echo "游客";}else{ echo $fields['mai1'];} ?>（<?php echo $fields['email']; ?>）<br>QQ:<?php echo $fields['qq']; ?><br>备注：<?php echo $fields['content']; ?>
</div>
</td>
</tr>
{/dede:datalist}
</tbody>
</table>

		<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.6.4/jquery.js"></script>
		<script>
			$(".xx").click(function(){

				var show = $(this).parents("tr").next('.detail');//获取当前点击元素父元素li的下个兄弟元素

				if (show.is(':hidden')) {
				//判断当前元素是否隐藏，如果隐藏点击显示否则点击隐藏
                    show.css("display","table-row")
                } else {
                  
                    show.css("display","none");
                }
					
			});
		
		</script>
<div class="znxx_tools">
<style type="text/css">
.pageList a:hover,.pageList strong{background:#6aa6f1;}
.detail div.gmz {line-height: 30px;}
</style>
<div class="pageList">{dede:pagelist listsize=5/}</div>
</div>


</div>

</div>

<!--footer-->
<?php include(DEDEMEMBER. "/templets/footer.htm"); ?>


<script>
	//左边导航
	var as = document.querySelectorAll('.left_menu a');
	var spans = document.querySelectorAll('.left_menu .icons');
	for(var i=0,len=as.length;i<len;i++){
		
		spans[i].clazz = spans[i].className;
		as[i].index = i;
		as[i].onmouseenter = mouseenterHandler;
		as[i].onmouseleave = mouseleaseHandler;
	}
	function mouseenterHandler(e){
		if(!/_h$/.test(spans[this.index].clazz)){
			spans[this.index].className = spans[this.index].clazz + '_h';
		}
	}
	function mouseleaseHandler(e){
		spans[this.index].className = spans[this.index].clazz;
	}
	
	//左右等高布局
	var main_left = document.querySelector('.main_left');
	var main_right = document.querySelector('.main_right');
	if(main_left.offsetHeight<main_right.offsetHeight){
		main_left.style.height = main_right.offsetHeight + 'px';
	}
</script>

</body>
</html>